<template>
  <div class="main">
    <div class="wrap">
      <el-table :data="tableData" :height="tableHeight" style="width: 100%;" class="table">
        <el-table-column prop="value" label="项目名称" />
        <el-table-column prop="value" label="提报时间" />
        <el-table-column prop="value" label="提报批次" />
        <el-table-column prop="value" label="提报红人数量" />
        <el-table-column label="操作" fixed="right" width="124">
          <template #default="scope">
            <div class="row-btns flex flex-align-items-center">
              <p class="row-btn font-14 pointer" @click="toDetail(scope.row)">详情</p>
              <span class="line"></span>
              <p class="row-btn font-14 pointer" @click="toEdit(scope.row)">编辑</p>
            </div>
          </template>
        </el-table-column>
      </el-table>
      <div class="pagination flex flex-align-items-center">
        <el-pagination layout="prev, pager, next, total" :total="form.total" />
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue';
import api from '@/api/index.js';

const tableHeight = ref(window.innerHeight - 176);
const form = ref({
  page: 1,
  perPage: 10,
  total: 1
});
const tableData = ref([]);
</script>

<style lang="less" scoped>
.main {
  padding: 16px;
}

.wrap {
  padding: 16px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);

  .pagination {
    justify-content: end;
    margin-top: 16px;
  }
}
</style>
